import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'index',
            component: require('@/components/index').default
        },
        {
            path: '/Native2Unicode',
            name: 'Native2Unicode',
            component: require('@/components/Native2Unicode').default
        },
        {
            path: '/Native2ASCII',
            name: 'Native2ASCII',
            component: require('@/components/Native2ASCII').default
        },
        {
            path: '/Native2UTF8',
            name: 'Native2UTF8',
            component: require('@/components/Native2UTF8').default
        },
        {
            path: '/urlencode',
            name: 'urlencode',
            component: require('@/components/Urlencode').default
        },
        {
            path: '/ConvertHex',
            name: 'ConvertHex',
            component: require('@/components/ConvertHex').default
        },
        {
            path: '/Unixtime',
            name: 'Unixtime',
            component: require('@/components/Unixtime').default
        },
        {
            path: '/Crontab',
            name: 'Crontab',
            component: require('@/components/Crontab').default
        },
        {
            path: '/Base64',
            name: 'Base64',
            component: require('@/components/Base64').default
        },
        {
            path: '/Md5',
            name: 'Md5',
            component: require('@/components/Md5').default
        },
        {
            path: '/Markdown',
            name: 'Markdown',
            component: require('@/components/Markdown').default
        },
        {
            path: '/JSONFormat',
            name: 'JSONFormat',
            component: require('@/components/JSONFormat').default
        },
        {
            path: '/JSONMinify',
            name: 'JSONMinify',
            component: require('@/components/JSONMinify').default
        },
        {
            path: '/Regex',
            name: 'Regex',
            component: require('@/components/Regex').default
        },
        {
            path: '/Qrcode',
            name: 'Qrcode',
            component: require('@/components/Qrcode').default
        },
        {
            path: '*',
            redirect: '/'
        }
    ]
})
